package com.xwh.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xwh.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 版本
 *
 * @author xwh
 **/
@Getter
@Setter
@Entity
@Table
public class SoftwareVersion extends BaseEntity implements Serializable {

    static final long serialVersionUID = 1L;

    @Column(length = 20)
    @Id
    @TableId(type = IdType.ASSIGN_ID)
    String versionId;

    @Schema(name = "软件id")
    @Column(length = 20)
    String softwareId;

    @Column(length = 20)
    @Schema(name = "版本号")
    String versionName;

    @Column(length = 20)
    @Schema(name = "版本大小")
    String versionSize;

    @Column(length = 200)
    @Schema(name = "版本描述")
    String versionDescription;

    @Column(length = 50)
    @Schema(name = "版本更新时间")
    String versionUpdateTime;

    @Column(length = 500)
    @Schema(name = "版本更新内容")
    String versionUpdateContent;

    @Column(length = 20)
    @Schema(name = "版本更新类型")
    String versionUpdateType;

    @Column(length = 50)
    @Schema(name = "版本更新状态")
    Boolean versionUpdateStatus;

}
